package com.xjoyt.pay.master.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.controllers.AbstractController;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.interfaces.MerchantMoneyContract;
import com.xjoyt.pay.master.params.ChannelPageParam;
import com.xjoyt.pay.master.params.MerchantMoneyPageParam;
import com.xjoyt.pay.master.params.MerchantPageParam;
import com.xjoyt.pay.master.services.MerchantMoneyService;
import com.xjoyt.pay.master.vo.ChannelGroup;
import com.xjoyt.pay.master.vo.MerchantMap;
import com.xjoyt.pay.master.vo.MerchantMoneyMap;

@RestController
@RequestMapping("merchantMoney")
public class MerchantMoneyController extends AbstractController implements MerchantMoneyContract {

	@Autowired
	private MerchantMoneyService service;

	@Override
	public PageResult<MerchantMap> loadPageGroup(@RequestBody PageParam<MerchantPageParam> param) {
		return service.loadPageGroup(param);
	}

	@Override
	public PageResult<MerchantMoneyMap> loadPage(@RequestBody PageParam<MerchantMoneyPageParam> param) {
		return service.loadPage(param);
	}

	@Override
	public PageResult<ChannelGroup> loadPageChannel(@RequestBody PageParam<ChannelPageParam> param) {
		return service.loadPageChannel(param);
	}

}
